package com.dzy.api;

import com.dzy.model.TbUser;
import com.dzy.result.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("dongdongshop-user-service")
public interface UserAPI {
    @GetMapping("user/getByUserName")
    public TbUser getByUserName(@RequestParam String username);

    @GetMapping("user/getNameById")
    public String getNameById(@RequestParam String userId);
}
